﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;

using System.Reflection;
using System.Reflection.Emit;
using System.Reflection.Cache;

using AcctrueWMS.Foundation.Common.Exception;
using AcctrueWMS.Foundation.Common;

namespace AcctrueWMS.Foundation.Data
{
    public class SysExpressionEvaler : IExpressionEvaler
    {
              

        public IDataModelContext Context
        {
            get;
            set;
        }

        public CommandExpressionTypeEnum ExpressionType
        {
            get { return CommandExpressionTypeEnum.Sys; }
        }

        public object Eval(string expr)
        {
            CommandAnalyser analyser = new CommandAnalyser();
            return analyser.Eval(expr);
        }
    }
}
